package com.yyge.controller.mobile.mapstruct;

import com.yyge.controller.mobile.cart.req.MobileCartAddReq;
import com.yyge.controller.mobile.cart.resp.MobileCartResp;
import com.yyge.entity.ShoppingCart;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/7/20 14:58
 * @Version 1.0
 */
@Mapper
public interface MobileCartConvert {
    MobileCartConvert MAPPER= Mappers.getMapper(MobileCartConvert.class);

    List<MobileCartResp>  convert(List<ShoppingCart> list);

    ShoppingCart convert(MobileCartAddReq req);
}